package cn.bellychang.command.demo03;

/**
 * @author ChangLiang
 * @date 2020/4/26
 */
public class BakeChickenWingCommand extends Command {

    public BakeChickenWingCommand() {
    }

    public BakeChickenWingCommand(Barbecuer receiver) {
        super(receiver);
    }

    @Override
    public void executeCommand() {
        receiver.BakeChickenWing();
    }

    @Override
    public CancelResult cancelCommand() {
        return new CancelResult(true, "取消烤鸡翅");
    }

    @Override
    public String toString() {
        return "烤鸡翅";
    }
}
